<template>
    <div>
      <h2>{{state.name}}</h2>
     
    </div>
  </template>
  
  <script>
import { ref } from "vue";
import { useStore } from "vuex";

  export default {
    name: 'Count',
    props:{

    },
    setup(){
        const store = useStore();
        const state = ref(store.state)
      
        return{
            state
        }
    }

   
  }
  </script>
  <style></style>
  
